class Telephone{
	
	public static void main(String[] args){
		for(int i=0; i<4;i++){
			System.out.println(i+" "+i+" "+i);
			for(int j=0;j<2;j++){
				System.out.println(j);
				if(j == 1){
					return;
				}
			}
		}
	}
}